package enumTest;

enum Season1 {
    spring("春天", "28度"){
        public void tt(){
            System.out.println("this is spring");
        }
    },
    summer("夏天", "35度"){
        public void tt(){
            System.out.println("this is summer");
        }
    },
    autumn("秋天", "27度"){
        public void tt(){
            System.out.println("this is autumn");
        }
    },
    winter("冬天", "0度"){
        public void tt(){
            System.out.println("this is winter");
        }
    };
    private String name;
    private String temperature;

    private Season1(String name, String temperature) {
        this.name = name;
        this.temperature = temperature;
    }
    Season1(){

    }
    public abstract void tt();
}

